<template>
  <div>
    <?xml version="1.0" encoding="utf-8"?>
    <div
      xmlns="http://www.w3.org/1999/xhtml"
      component="$UI/system/components/justep/window/window"
      design="device:m;"
      xid="window"
      class="window"
    >
      <div
        component="$UI/system/components/justep/model/model"
        xid="model"
        style="top: 361px; left: 193px; height: auto"
        onParamsReceive="modelParamsReceive"
      >
        <div
          component="$UI/system/components/justep/data/data"
          autoLoad="false"
          xid="taskdata1"
          limit="1"
          idColumn="id"
          autoNew="false"
        >
          <column name="id" type="String" xid="xid1"></column>
          <column name="logisplanid" type="String" xid="xid2"></column>
          <column name="billcode" type="String" xid="xid3"></column>
          <column name="transweight" type="String" xid="xid3"></column>
          <column name="transpieces" type="String" xid="xid4"></column>
          <column name="changepercent" type="String" xid="xid5"></column>
          <column name="sgbillcode" type="String" xid="xid6"></column>
          <column name="vcode" type="String" xid="xid7"></column>
          <column name="fromaddr" type="String" xid="xid8"></column>
          <column name="toaddr" type="String" xid="xid9"></column>
          <column name="suppliername" type="String" xid="xid10"></column>
          <column name="companyname" type="String" xid="xid11"></column>
          <column name="transdate" type="String" xid="xid12"></column>
          <column name="transenddate" type="String" xid="xid13"></column>
          <column name="item_name" type="String" xid="xid14"></column>
          <column name="specname" type="String" xid="xid15"></column>
          <column name="licensecode" type="String" xid="xid16"></column>
          <column name="drvname" type="String" xid="xid17"></column>
          <column name="fromstorename" type="String" xid="xid18"></column>
          <column name="tostorename" type="String" xid="xid19"></column>
          <column name="bareweight" type="String" xid="xid20"></column>
          <column name="vmemo" type="String" xid="xid21"></column>
          <column name="waterrate" type="String" xid="xid22"></column>
          <column name="vmemo3" type="String" xid="xid23"></column>
          <column name="vmemo2" type="String" xid="xid24"></column>
        </div>
        <div
          component="$UI/system/components/justep/data/data"
          autoLoad="false"
          xid="detailData"
          idColumn="SingleStandardCode"
          autoNew="false"
          limit="100"
          confirmDelete="false"
          confirmRefresh="false"
        >
          <column
            label="标准码"
            name="SingleStandardCode"
            type="String"
            xid=""
          />
          <column label="熔炼号" name="HeatNO" type="String" xid="" />
          <column label="Fe含量" name="FeAssay" type="String" xid="" />
          <column label="重量" name="InStorageQuantity" type="Decimal" xid="" />
          <column label="生产日期" name="ProductDate" type="String" xid="" />
        </div>
      </div>
      <div
        component="$UI/system/components/justep/panel/panel"
        class="x-panel x-full"
        xid="panel1"
      >
        <div class="x-panel-top" xid="top1">
          <div
            component="$UI/system/components/justep/titleBar/titleBar"
            title="发货通知单"
            class="x-titlebar"
          >
            <div class="x-titlebar-left">
              <a
                component="$UI/system/components/justep/button/button"
                label=""
                class="btn btn-link btn-only-icon"
                icon="icon-chevron-left"
                onClick="{operation:'window.close'}"
                xid="backBtn"
              >
                <i class="icon-chevron-left" />
                <span></span>
              </a>
            </div>
            <div class="x-titlebar-title">发货通知单</div>
            <div class="x-titlebar-right reverse"></div>
          </div>
        </div>
        <div class="x-panel-content" xid="content1">
          <div
            component="$UI/system/components/justep/controlGroup/controlGroup"
            class="x-control-group"
            title="运输业务"
            xid="controlGroup1"
          >
            <div class="x-control-group-title" xid="controlGroupTitle1">
              <span xid="span1">运输业务</span>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit1"
            >
              <label class="x-label" xid="label1"><![CDATA[计划编号]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output18"
                bind-ref='$model.taskdata1.ref("billcode")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit2"
            >
              <label class="x-label" xid="label2"><![CDATA[发货通知单]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output2"
                bind-ref='$model.taskdata1.ref("sgbillcode")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit3"
            >
              <label class="x-label" xid="label3"><![CDATA[发货公司]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output3"
                bind-ref='$model.taskdata1.ref("companyname")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit4"
            >
              <label class="x-label" xid="label4"><![CDATA[发货仓库]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output4"
                bind-ref='$model.taskdata1.ref("fromstorename")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit17"
            >
              <label class="x-label" xid="label17"><![CDATA[发货地址]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output17"
                bind-ref='$model.taskdata1.ref("fromaddr")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit5"
            >
              <label class="x-label" xid="label5"><![CDATA[收货公司]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output5"
                bind-ref='$model.taskdata1.ref("suppliername")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit6"
            >
              <label class="x-label" xid="label6"><![CDATA[收货仓库]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output6"
                bind-ref='$model.taskdata1.ref("tostorename")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit16"
            >
              <label class="x-label" xid="label16"><![CDATA[收货地址]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output16"
                bind-ref='$model.taskdata1.ref("toaddr")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit7"
            >
              <label class="x-label" xid="label7"><![CDATA[发货日期]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output7"
                bind-ref='$model.taskdata1.ref("transdate")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit8"
            >
              <label class="x-label" xid="label8"><![CDATA[截止日期]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output8"
                bind-ref='$model.taskdata1.ref("transenddate")'
              ></div>
            </div>

            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit18"
              style="display: none"
            >
              <label class="x-label" xid="label18"><![CDATA[单件皮重]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output1"
                bind-ref='$model.taskdata1.ref("bareweight")'
              ></div>
            </div>
          </div>
          <div
            component="$UI/system/components/justep/controlGroup/controlGroup"
            class="x-control-group"
            title="运输物料"
            xid="controlGroup2"
          >
            <div class="x-control-group-title" xid="controlGroupTitle2">
              <span xid="span2">运输物料</span>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit9"
            >
              <label class="x-label" xid="label9"><![CDATA[物料名称]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output9"
                bind-ref='$model.taskdata1.ref("item_name")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit10"
            >
              <label class="x-label" xid="label10"><![CDATA[规格型号]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output10"
                bind-ref='$model.taskdata1.ref("specname")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit11"
            >
              <label class="x-label" xid="label11"><![CDATA[应发重量]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output11"
                bind-ref='$model.taskdata1.ref("transweight")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit12"
            >
              <label class="x-label" xid="label12"><![CDATA[应发件数]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output12"
                bind-ref='$model.taskdata1.ref("transpieces")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit19"
            >
              <label class="x-label" xid="label19"><![CDATA[换算率]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output19"
                bind-ref='$model.taskdata1.ref("changepercent")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit20"
            >
              <label class="x-label" xid="label20"><![CDATA[单件皮重]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output20"
                bind-ref='$model.taskdata1.ref("bareweight")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit21"
            >
              <label class="x-label" xid="label21"><![CDATA[含水率]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output21"
                bind-ref='$model.taskdata1.ref("waterrate")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit22"
            >
              <label class="x-label" xid="label22"><![CDATA[备注]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output22"
                bind-ref='$model.taskdata1.ref("vmemo")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit24"
            >
              <label class="x-label" xid="label24"><![CDATA[备注2]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output24"
                bind-ref='$model.taskdata1.ref("vmemo2")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit23"
            >
              <label class="x-label" xid="label23"><![CDATA[其他]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output23"
                bind-ref='$model.taskdata1.ref("vmemo3")'
              ></div>
            </div>
          </div>
          <div
            component="$UI/system/components/justep/controlGroup/controlGroup"
            class="x-control-group"
            title="车辆信息"
            xid="controlGroup3"
          >
            <div class="x-control-group-title" xid="controlGroupTitle3">
              <span xid="span3">车辆信息</span>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit13"
            >
              <label class="x-label" xid="label13"><![CDATA[车号]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output13"
                bind-ref='$model.taskdata1.ref("vcode")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit14"
            >
              <label class="x-label" xid="label14"><![CDATA[驾驶证号]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output14"
                bind-ref='$model.taskdata1.ref("licensecode")'
              ></div>
            </div>
            <div
              component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-label30"
              xid="labelEdit15"
            >
              <label class="x-label" xid="label15"><![CDATA[司机姓名]]></label>
              <div
                component="$UI/system/components/justep/output/output"
                class="x-output x-edit"
                xid="output15"
                bind-ref='$model.taskdata1.ref("drvname")'
              ></div>
            </div>
          </div>
          <div
            component="$UI/system/components/justep/controlGroup/controlGroup"
            class="x-control-group"
            title="铝锭明细"
            xid="controlGroup5"
            style="width: 100%; background-color: transparent"
            bind-visible="$model.detailData.count()&gt;0"
          >
            <div
              class="x-control-group-title"
              xid="controlGroupTitle5"
              style="height: 100%"
            >
              <span xid="span5">铝锭明细</span>
            </div>
            <div
              component="$UI/system/components/justep/dataTables/dataTables"
              flexibleWidth="true"
              responsive="true"
              class="table table-hover table-striped"
              xid="detailDataTables"
              data="detailData"
              showRowNumber="true"
              rowActiveClass="active"
              ordering="false"
            >
              <columns xid="columns2">
                <column name="HeatNO" xid="column3" label="熔炼号" />
                <column name="FeAssay" xid="column7" label="铁含量" />
                <column name="InStorageQuantity" xid="column8" label="重量" />
                <column name="ProductDate" xid="column9" label="生产日期" /> />
              </columns>
            </div>
            <div class="panel-footer" xid="footer2">
              <div
                component="$UI/system/components/justep/row/row"
                class="x-row"
                xid="row6"
              >
                <div xid="col13">
                  <span xid="span11" style="font-weight: bold"
                    ><![CDATA[捆数：]]></span
                  >
                </div>
                <div xid="col14">
                  <div
                    component="$UI/system/components/justep/output/output"
                    class="x-output"
                    xid="output6"
                    style="
                      padding-top: 0;
                      margin-right: 10px;
                      margin-left: 10px;
                      font-weight: bold;
                    "
                    bind-ref="detailData.count()"
                  />
                </div>
                <div xid="col15">
                  <span xid="span12" style="font-weight: bold"
                    ><![CDATA[总重：]]></span
                  >
                </div>
                <div xid="col16">
                  <div
                    component="$UI/system/components/justep/output/output"
                    class="x-output"
                    xid="output7"
                    style="
                      padding-top: 0;
                      margin-right: 10px;
                      margin-left: 10px;
                      font-weight: bold;
                    "
                    bind-ref="Math.round(detailData.sum('InStorageQuantity'))"
                  />
                </div>
              </div>
            </div>
          </div>
          <div
            component="$UI/system/components/justep/controlGroup/controlGroup"
            class="x-control-group"
            title="其他信息"
            xid="controlGroup4"
          >
            <div class="x-control-group-title" xid="controlGroupTitle4">
              <span xid="span4">其他信息</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
